<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
	<meta name="author" content="Your Name here" />
	<meta name="keywords" content="" />
	<meta name="description" content="" />	
	
	<?php echo $this->Html->charset(); ?>
	<title>
		Ro-Ma Neumaticos
	</title>
	
	<?php
		echo $this->Html->meta('icon');

		echo $this->Html->css('bootstrap.css');
		echo $this->Html->css('bootstrap-theme.min.css');
		echo $this->Html->css('bootstrap-responsive.min.css');
		
		echo $this->Html->css('bootstrap-glyphicons.css');
		
		echo $this->fetch('meta');
		echo $this->fetch('css');
		echo $this->fetch('script');
	?>
	<?php echo $this->Html->script('jquery'); ?>
	<?php echo $this->Html->script('bootstrap.min'); ?>
	<?php echo $this->Html->script('jquery.dataTables'); ?>
	<?php //echo $this->Html->script('jquery.dataTables.min'); ?> 
</head>

<body>
<header class="navbar navbar-inverse navbar-fixed-top bs-docs-nav" role="banner">
  <div class="container">
    <div class="navbar-header">
      <button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".bs-navbar-collapse">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <?php 
      echo $this->Html->image('logo-roma-tb.png', array('url' => array('controller' => 'pages', 'action' => 'home'), 'class' => 'navbar-brand'));
      //echo $this->Html->link('ROMA - Neumaticos',  array('controller' => 'pages', 'action' => 'home'), array('class' => 'navbar-brand')); ?>
     
    </div>
    <nav class="collapse navbar-collapse bs-navbar-collapse" role="navigation">
      <ul class="nav navbar-nav">
      	<?php  
			if($this->Permission->check('controllers')){
			echo '<li>'. $this->Html->link('Inicio',array('controller' => 'pages', 'action' => 'home')). '</li>'; 
			echo '<li>'. $this->Html->link('Opciones de Sistema',array('controller' => 'pages', 'action' => 'opcionesdesistema')). '</li>'; 
			 } 
		 ?>
        
      </ul>
      <ul class="nav navbar-nav navbar-right">
       
        	<?php 
					if ($this->Session->read('Auth.User')){
						echo '<li><a href="#">'.$this->Session->read('Auth.User.username') . '</a></li>';
						echo '<li>' . $this->Html->link('  Salir', array('controller' => 'Users', 'action' => 'logout'), array('class' => 'glyphicon glyphicon glyphicon-log-out')). '</li>';
					}
					else{
						echo "'<li>' . No esta autentificado" . '</li>';
						echo '<li>' . $this->Html->link('  Ingresar', array('controller' => 'Users', 'action' => 'login'), array('class' => 'glyphicon glyphicon glyphicon-log-in')). '</li>';
					}
					
				?>
          	
        
      </ul>
    </nav>
  </div>
</header>

<div class="container">
	<div class="row clearfix">
		<div class="col-md-12 column">

			<div class="jumbotron">

				
					<?php echo $this->fetch('content'); ?>
				
			</div>
		</div>
	</div>
</div>

</body>
</html>
